package com.itheima.a01oopextendsdemo1;

public class Test {
    public static void main(String[] args) {
        //创建对象并调用方法

        //1.创建布偶猫的对象
        BoolCat bc = new BoolCat();
        bc.eat();
        bc.drink();
        bc.catchMouse();

        System.out.println("-----------------------------");

        //2.创建哈士奇的对象
        HisQi hq = new HisQi();
        hq.eat();
        hq.drink();
        hq.defend();
        hq.destoryHome();
    }
}
